﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LotteryVote.Entity
{
    public class UserInfo : IEntity
    {
        public const string TABLENAME = "tb_UserInfo";
        public const string USERID = "UserId";
        public const string PASSWORD = "Password";
        public const string NAME = "Name";
        public const string STATE = "State";
        public const string EMAIL = "Email";
        public const string GIVENCREDIT = "GivenCredit";
        public const string AVAILABLEGIVENCREDIT = "AvailableGivenCredit";
        public const string SHARERATE = "ShareRate";
        public const string CREATETIME = "CreateTime";

        public int UserId { get; set; }
        public string Password { get; set; }
        public string Name { get; set; }
        public UserState State { get; set; }
        /// <summary>
        /// 信用额
        /// </summary>
        /// <value>
        /// The given credit.
        /// </value>
        public decimal GivenCredit { get; set; }
        public decimal AvailableGivenCredit { get; set; }
        /// <summary>
        /// 分成.
        /// </summary>
        /// <value>
        /// The share rate.
        /// </value>
        public double ShareRate { get; set; }
        public string Email { get; set; }
        public DateTime CreateTime { get; set; }
    }
}
